<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

    <link rel='stylesheet' id='wp-admin-css' href='../static/login/css/admin.css' type='text/css' media='all'/>
    <link rel='stylesheet' id='colors-fresh-css' href='../static/login/css/color.css' type='text/css' media='all'/>
    <meta name='robots' content='noindex,nofollow'/>
</head>
<body class="login">

<div class=metanav>
    {% if not session.logged_in %}
        <a href="{{ url_for('login') }}">log in</a>
    {% else %}
        <a href="{{ url_for('logout') }}">log out</a>
    {% endif %}
</div>
<div id="login">

    <form action="{{ url_for('login') }}" method="POST"  onsubmit="return checkForm()">
        <p>
            <label for="user_login">用户名<br/>
                <input type="text" name="username" id="username" class="input" value="" size="20"
                       tabindex="10"/></label>
        </p>
        <p>
            <label for="user_pass">密码<br/>
                <input type="password" name="password" id="password" class="input" value="" size="20"
                       tabindex="20"/></label>
        </p>
        <p class="submit">
            <input type="submit" name="Login" id="wp-submit" class="button-primary" value="登录" tabindex="100"/>
        </p>


    </form>

    <script type="text/javascript">
        function wp_attempt_focus() {
            setTimeout(function () {
                try {
                    d = document.getElementById('user_login');
                    d.focus();
                    d.select();
                } catch (e) {
                }
            }, 200);
        }

        wp_attempt_focus();
        if (typeof wpOnload == 'function') wpOnload();
    </script>
    <p id="backtoblog"><a href="/" title="不知道自己在哪？">&larr; 回到派森吧 - pythonpub.com&#039; Home</a></p>
</div>
<div class="clear"></div>
</body>
</html> 